package org.jeyam.date;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * Created with IntelliJ IDEA.
 * User: madasamy
 * DateApp: 12/1/12
 * Time: 2:12 PM
 * To change this template use File | Settings | File Templates.
 */
public class DateApp {

    private java.util.Date givenDate;
    private int days;
    private java.util.Date expectedDate;

    public DateApp()
    {
    }

    public java.util.Date getGivenDate()
    {
        return givenDate;
    }

    public void setGivenDate(java.util.Date givenDate)
    {
        this.givenDate = givenDate;
    }


    public int getDays()
    {
        return days;
    }

    public void setDays(int days)
    {
        this.days = days;
    }

    public java.util.Date getExpectedDate()
    {
        return expectedDate;
    }

    public void setExpectedDate(java.util.Date expectedDate)
    {
        this.expectedDate = expectedDate;
    }

    @Override
    public String toString()
    {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public boolean equals(Object object)
    {
        if (object instanceof DateApp) {
            DateApp otherObject = (DateApp) object;
            return EqualsBuilder.reflectionEquals(object, otherObject);
        }
        return false;
    }

    @Override
    public int hashCode()
    {
        return HashCodeBuilder.reflectionHashCode(this);
    }
}
